{% extends '::base.html.twig' %}
{% block body %}
<h3>Nouveau Fournisseur</h3>
<div class="content">
    <div class="form-row row-fluid">
        <form action="{{ path('new_fournisseur') }}" method="post" {{ form_enctype(form) }}>
            {{form_widget(form._token)}}
            <table style="width: 100%">
                <tr>
                    <td style="width: 50%">
                        <table style="width: 100%">
                            <tr>
                                <td style="width: 40%">
                         {{ form_label(form.code, "Code Fournisseur:") }}
                        {{ form_errors(form.code) }} 
                                    </td>
                                    <td style="width: 40%">
                                        <div class="span8 controls" style="width: 200px">
                             {{ form_widget(form.code,{'attr':{'class':'nostyle','style':'width:140%;margin-left:-50%;margin-bottom:1%'}})}}
                                            </div>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td style="width: 40%">
                         {{ form_label(form.matricule_fiscale, "Matricule Fiscale:") }}
                        {{ form_errors(form.matricule_fiscale) }} 
                                            </td>
                                            <td style="width: 40%">
                                                <div class="span8 controls" style="width: 200px">
                             {{ form_widget(form.matricule_fiscale,{'attr':{'class':'nostyle','style':'width:140%;margin-left:-50%;margin-bottom:1%'}})}}
                                                    </div>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td style="width: 40%">
                         {{ form_label(form.tel, "N°Téléphone:") }}
                        {{ form_errors(form.tel) }} 
                                                    </td>
                                                    <td style="width: 40%">
                                                        <div class="span8 controls" style="width: 200px">
                             {{ form_widget(form.tel,{'attr':{'class':'nostyle','style':'width:140%;margin-left:-50%;margin-bottom:1%'}})}}
                                                            </div>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td style="width: 40%">
                         {{ form_label(form.adresse, "Adresse:") }}
                        {{ form_errors(form.adresse) }} 
                                                            </td>
                                                            <td style="width: 40%">
                                                                <div class="span8 controls" style="width: 200px">
                             {{ form_widget(form.adresse,{'attr':{'class':'nostyle','style':'width:140%;margin-left:-50%;margin-bottom:1%'}})}}
                                                                    </div>
                                                                </td>
                                                            </tr>
                                                        </table>
                                                    </td>
                                                    <td style="width: 50%">
                                                        <table style="width: 100%">
                                                            <tr>
                                                                <td style="width: 40%">
                         {{ form_label(form.raison_social, "Raison Sociale:") }}
                        {{ form_errors(form.raison_social) }} 
                                                                    </td>
                                                                    <td style="width: 40%">
                                                                        <div class="span8 controls" style="width: 200px">
                             {{ form_widget(form.raison_social,{'attr':{'class':'nostyle','style':'width:160%;margin-left:-60%;margin-bottom:1%'}})}}
                                                                            </div>
                                                                        </td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td style="width: 40%">
                         {{ form_label(form.numero_exonoration, "N°Exonoration:") }}
                        {{ form_errors(form.numero_exonoration) }} 
                                                                            </td>
                                                                            <td style="width: 40%">
                                                                                <div class="span8 controls" style="width: 200px">
                             {{ form_widget(form.numero_exonoration,{'attr':{'class':'nostyle','style':'width:160%;margin-left:-60%;margin-bottom:1%'}})}}
                                                                                    </div>
                                                                                </td>
                                                                            </tr>
                                                                            <tr>
                                                                                <td style="width: 40%">
                         {{ form_label(form.fax, "Fax:") }}
                        {{ form_errors(form.fax) }} 
                                                                                    </td>
                                                                                    <td style="width: 40%">
                                                                                        <div class="span8 controls" style="width: 200px">
                             {{ form_widget(form.fax,{'attr':{'class':'nostyle','style':'width:160%;margin-left:-60%;margin-bottom:1%'}})}}
                                                                                            </div>
                                                                                        </td>
                                                                                    </tr>
                                                                                    <tr>
                                                                                        <td style="width: 40%">
                         {{ form_label(form.solde, "Solde:") }}
                        {{ form_errors(form.solde) }} 
                                                                                            </td>
                                                                                            <td style="width: 40%">
                                                                                                <div class="span8 controls" style="width: 200px">
                             {{ form_widget(form.solde,{'attr':{'class':'nostyle','style':'width:160%;margin-left:-60%;margin-bottom:1%'}})}}
                                                                                                    </div>
                                                                                                </td>
                                                                                            </tr>
                                                                                        </table>
                                                                                    </td>
                                                                                </tr>
                                                                            </table>
                                                   
            <input type="submit" class="btn btn-primary" />
        </form>
    </div>
</div>
{% endblock %}   



